package com.geo.geoProject.client.tousLesProgrammes.recherchePersonnes;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.smartgwt.client.types.Side;
import com.smartgwt.client.widgets.Img;
import com.smartgwt.client.widgets.tab.Tab;
import com.smartgwt.client.widgets.tab.TabSet;

public class RechercheDePersonnesPanel extends VerticalPanel {
	
	public RechercheDePersonnesPanel() {
		setSize("100%", "100%");
		setHorizontalAlignment(ALIGN_CENTER) ;
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		add(absolutePanel);
		absolutePanel.setHeight("55px");
		
		Label lblRecherche = new Label("Recherche");
		absolutePanel.add(lblRecherche, 276, 10);
		lblRecherche.setSize("100%", "19px");
		
        final TabSet topTabSet = new TabSet();  
        topTabSet.setTabBarPosition(Side.TOP);  
        topTabSet.setWidth(400);  
        topTabSet.setHeight(200);  
  
        Tab tTab1 = new Tab("Blue", GWT.getModuleBaseURL()+"images/pieces/16/pawn_blue.png");  
        Img tImg1 = new Img(GWT.getModuleBaseURL()+"images/pieces/48/pawn_blue.png", 48, 48);  
        tTab1.setPane(tImg1);  
  
        Tab tTab2 = new Tab("Green", GWT.getModuleBaseURL()+"images/pieces/16/pawn_green.png");  
        Img tImg2 = new Img(GWT.getModuleBaseURL()+"images/pieces/48/pawn_green.png", 48, 48);  
        tTab2.setPane(tImg2);  
  
        topTabSet.addTab(tTab1);  
        topTabSet.addTab(tTab2); 

        add(topTabSet) ;
        topTabSet.setWidth("300px") ;
	}
}
